package com.winter.Controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.winter.service.IcompanyCardService;
import com.winter.util.Result;

@RestController
@RequestMapping("/icompanyCard")
public class IcompanyCardController {
	
	@Resource
	private IcompanyCardService icompanyCardService;
	
	/*
     * 公司圈列表
     */
	@GetMapping("/icompanyCardList")
    public Result icompanyCardList(Integer pageSize, Integer pageNumber,String comClass,String comSubClass,String userNo,String key){
    	return icompanyCardService.icompanyCardList(pageSize,pageNumber,comClass,comSubClass,userNo, key);
    }
	
	/*
     * 通过id查询公司圈信息
     */
	@GetMapping("/getIcomCard")
    public Result getIcomCard(Long id,String userNo){
      return icompanyCardService.getIcomCard(id,userNo);
    }
}
